package com.mine.dao;

import com.mine.pojo.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CartMapper {
    List<Cart> querynewTitle();

    List<Cart> queryAllCartByMealId(Integer meal_id);

    void addCart(@Param("meal_id") String meal_id, @Param("orderItem_id") String orderItem_id, @Param("title") String title,@Param("user_id") Integer user_id);

    Cart queryCartByUserMealOrderItem(@Param("user_id") int user_id,@Param("meal_id") String meal_id,@Param("orderItem_id") String orderitem_id);

}
